package cn.broadsense.biz.service.impl;

import cn.broadsense.biz.domain.ChannelTagDetails;
import cn.broadsense.biz.mapper.ChannelTagDetailsMapper;
import cn.broadsense.biz.service.ChannelTagDetailsService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bs
 * @description 针对表【t_channel_tag_detatils(点位标签明细)】的数据库操作Service实现
 * @createDate 2023-09-25 16:22:58
 */
@Service
public class ChannelTagDetailsServiceImpl extends ServiceImpl<ChannelTagDetailsMapper, ChannelTagDetails>
        implements ChannelTagDetailsService {

    @Override
    public List<ChannelTagDetails> listByChannelId(Long channelId) {
        LambdaQueryWrapper<ChannelTagDetails> query = new LambdaQueryWrapper<>();
        query.eq(ChannelTagDetails::getChannelId, channelId);
        return this.baseMapper.selectList(query);
    }

    @Override
    public List<Long> channelTagId() {
        return this.baseMapper.channelTagId();
    }

    @Override
    public long countThirdDataQty(Long tagId) {
        return this.baseMapper.countThirdDataQty(tagId);
    }


}




